package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.Movement;
import com.tanhua.model.vo.PageResult;

import java.util.List;

public interface MovementApi {
    //发布动态
    void publish(Movement movement);

    //分页查询：我得动态
    PageResult findMyMovementsByUserId(Long userId, Integer page, Integer pagesize);

    //分查询询：好友动态
    List<Movement> findFriendMovements(Long userId, Integer page, Integer pagesize);

    //随机获取多条数据
    List<Movement> randomMovements(Integer pageSize);

    //根据pid数据查询
    List<Movement> findMovementsByPids(List<Long> pids);

    //根据id查询单条动态数据
    Movement findMovementById(String movementId);



}